<?php
/**
 * 多渠道订单（FBA发货）
 * Date: 2024/11/15
 * Time: 13:50
 */

namespace App\Console\Commands\SpApi\Outbound;


use App\Crontab\Daily\SpApi\GrabOutbound;
use App\Logic\Plat\SyncPlatOrder;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;

class FulfillmentOrderOutbound extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'amazon:create-fulfillment-order {delivery_order_no=null} {account_id=0}';

    /**
     * The console command description.
     * @var string
     */
    protected $description = 'exe func';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $deliveryOrderNo = $this->argument('delivery_order_no');
        $accountId = $this->argument('account_id');

        SyncPlatOrder::syncCreateAmazonOrder($deliveryOrderNo,$accountId);

        $this->info('finish!');

    }

}
